<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>test_sendjson</title>
	<script type="text/javascript" charset="utf-8" src="./js/jquery-1.11.3.min.js"></script>
	<script type="text/javascript" src=""></script>
</head>
<body>
	<ul id="category">
		<li name1="卧槽">fuck</li>
		<li>PHP</li>
		<li>fuck PHP</li>
	</ul>
<script type="text/javascript" charset="utf-8">
$(function(){
	$("#category li").click(function(){
		var name = $(this).attr("name1");
		alert(name);
		var jsonData = {
			"fuck" :name
		}
		$.ajax({  
				type: "post",  
				url: "./test_getjson.html",  
				dataType: "json",  
				data: jsonData,  
				success: function(msg){  
							alert(typeof(msg));
							alert(msg.fuck)
						}  
			}); 
		location.href = "./test_getjson.html";
	})	
})
</script>
</body>
</html>